Platform Explorer / Nuxeo Platform 2023.8

Contribution org.nuxeo.drive.listeners--listener

This contribution is part of XML component org.nuxeo.drive.listeners inside nuxeo-drive-core-2023.8.13.jar /OSGI-INF/nuxeodrive-listeners.xml

Documentation

Notify the NuxeoDriveManager service to invalidate it's cache when a document is deleted (physically or just the trash).

Extension Point

Extension point listener of component EventServiceComponent.

Registration Order

13
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <listener async="false" class="org.nuxeo.drive.listener.NuxeoDriveCacheInvalidationListener" name="nuxeoDriveCacheInvalidationListener" postCommit="false" priority="300">
          <event>lifecycle_transition_event</event>
          <event>documentTrashed</event>
          <event>documentUntrashed</event>
          <event>documentRemoved</event>
          <event>documentSecurityUpdated</event>
          <event>addedToCollection</event>
          <event>removedFromCollection</event>
        </listener>
  • <listener async="false" class="org.nuxeo.drive.listener.NuxeoDriveFileSystemDeletionListener" name="nuxeoDriveFileSystemDeletionListener" postCommit="false" priority="200">
          <event>beforeDocumentModification</event>
          <event>aboutToMove</event>
          <event>lifecycle_transition_event</event>
          <event>documentTrashed</event>
          <event>aboutToRemove</event>
          <event>beforeDocumentSecurityModification</event>
          <event>aboutToUnregisterRoot</event>
          <event>beforeRemovedFromCollection</event>
          <event>groupUpdated</event>
        </listener>
  • <listener async="true" class="org.nuxeo.drive.listener.NuxeoDriveVirtualEventLogger" name="nuxeoDriveVirtualEventLoggerListener" postCommit="true"/>
  • <listener async="true" class="org.nuxeo.drive.listener.NuxeoDriveGroupUpdateListener" name="nuxeoDriveGroupUpdateListener" postCommit="true">
          <event>group_created</event>
          <event>group_deleted</event>
          <event>group_modified</event>
        </listener>
  • <listener async="false" class="org.nuxeo.drive.listener.NuxeoDriveSyncRootCopyListener" name="nuxeoDriveSyncRootCopyListener" postCommit="false">
          <event>documentCreatedByCopy</event>
        </listener>
  • <listener async="false" class="org.nuxeo.drive.listener.NuxeoDriveSyncRootVersioningListener" name="nuxeoDriveSyncRootVersioningListener" postCommit="false">
          <event>documentCheckedIn</event>
        </listener>

XML Source

<extension point="listener" target="org.nuxeo.ecm.core.event.EventServiceComponent">
    <documentation>
      Notify the NuxeoDriveManager service to invalidate
      it's cache when a document is deleted (physically or just the
      trash).

      @author Olivier Grisel
    </documentation>

    <listener async="false" class="org.nuxeo.drive.listener.NuxeoDriveCacheInvalidationListener" name="nuxeoDriveCacheInvalidationListener" postCommit="false" priority="300">
      <event>lifecycle_transition_event</event>
      <event>documentTrashed</event>
      <event>documentUntrashed</event>
      <event>documentRemoved</event>
      <event>documentSecurityUpdated</event>
      <event>addedToCollection</event>
      <event>removedFromCollection</event>
    </listener>

    <documentation>
      Handle document removal or root unregistration in
      order to be able to
      populate the audit log and hence compute
      consistent change
      summaries for each user.

      @author Olivier Grisel
    </documentation>
    <listener async="false" class="org.nuxeo.drive.listener.NuxeoDriveFileSystemDeletionListener" name="nuxeoDriveFileSystemDeletionListener" postCommit="false" priority="200">
      <event>beforeDocumentModification</event>
      <event>aboutToMove</event>
      <event>lifecycle_transition_event</event>
      <event>documentTrashed</event>
      <event>aboutToRemove</event>
      <event>beforeDocumentSecurityModification</event>
      <event>aboutToUnregisterRoot</event>
      <event>beforeRemovedFromCollection</event>
      <event>groupUpdated</event>
    </listener>

    <documentation>
      Populate the audit log with virtual events generated by the nuxeoDriveFileSystemDeletionListener.

      @author Antoine Taillefer
    </documentation>
    <listener async="true" class="org.nuxeo.drive.listener.NuxeoDriveVirtualEventLogger" name="nuxeoDriveVirtualEventLoggerListener" postCommit="true"/>

    <documentation>
      Handle group change events fired by the UserManager.

      @author Antoine Taillefer
    </documentation>
    <listener async="true" class="org.nuxeo.drive.listener.NuxeoDriveGroupUpdateListener" name="nuxeoDriveGroupUpdateListener" postCommit="true">
      <event>group_created</event>
      <event>group_deleted</event>
      <event>group_modified</event>
    </listener>

    <documentation>
      Reset synchronization root registrations on a copied document and its children.
    </documentation>
    <listener async="false" class="org.nuxeo.drive.listener.NuxeoDriveSyncRootCopyListener" name="nuxeoDriveSyncRootCopyListener" postCommit="false">
      <event>documentCreatedByCopy</event>
    </listener>

    <documentation>
      Reset synchronization root registrations on a versioned document.
    </documentation>
    <listener async="false" class="org.nuxeo.drive.listener.NuxeoDriveSyncRootVersioningListener" name="nuxeoDriveSyncRootVersioningListener" postCommit="false">
      <event>documentCheckedIn</event>
    </listener>

  </extension>